package jhlee42;

import java.util.Scanner;

public class J12Circle {

	public static void main(String[] args) {

		Scanner sc;
		double across;
		sc = new Scanner(System.in);

		Circle crossObject = new Circle();

		System.out.println("지름을 입력하세요..");

		crossObject.across = sc.nextInt();

		System.out.println("원 둘레 :  " + crossObject.getCircle());
		System.out.println("원 넓이 :  " + crossObject.getArea());

	}
}

class Circle {
	double across;
	double circle; // 원 둘레
	double area; // 원 면적
	double pi = 3.141592;

	public double getCircle() {
		double pi = 3.141592;
		return (across * 2) * pi;
	}

	public double getArea() {
		double pi = 3.141592;
		return (across * across) * pi;
	}

}